//
//  MeatmarketsTableViewCell.m
//  PigMarket
//
//  Created by 张敬 on 2019/7/15.
//  Copyright © 2019年 pigmarket.oc. All rights reserved.
//

#import "MeatMarketsTableViewCell.h"
#import "BuyMeatModel.h"


@implementation MeatMarketsTableViewCell

- (void)setupUI{
    
    self.meatBuyUI.view = self;
}

- (void)setupLayout{
    
    self.meatBuyUI.type = MeatBuyListUILayoutType_Horizontal;
}

- (MeatBuyListUIComponent *)meatBuyUI{
    
    if (!_meatBuyUI) {
        _meatBuyUI = [[MeatBuyListUIComponent alloc] init];
    }
    return _meatBuyUI;
}


#pragma mark - setter and getter

- (void)setMeatModel:(BuyMeatModel *)meatModel{
    
    _meatModel = meatModel;
    _meatBuyUI.model = meatModel;
    _meatBuyUI.scoreNum = 2.5;

}



@end
